package vip.meeet.event;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class LoginEventListener implements ApplicationListener<LoginEvent> {

    @Override
    public void onApplicationEvent(LoginEvent event) {
       Map<String,String> map = (Map<String, String>) event.getSource();
        System.out.println(map.keySet());
        System.out.println(map.values());
    }
}
